package com.afalon.cloud.contracts.finance;

import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
@XmlRootElement(name = "budget")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Budget 
{
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String budgetid;
	
	@Persistent
	private BigDecimal totalvalue;
	
	@Persistent
	private String datetime;
	
	@Persistent
	private String recurrenceid;

	public Budget() 
	{
		
	}

	public void setBudgetId(String value) {
		// Do nothing.
	}
	
	public String getBudgetId() {
		return budgetid;
	}

	public void setTotalvalue(BigDecimal value) {
		totalvalue = value;
	}

	public BigDecimal getTotalvalue() {
		return totalvalue;
	}

	public void setDatetime(String value) {
		datetime = value;
	}

	public String getDatetime() {
		return datetime;
	}

	public void setRecurrenceid(String value) {
		recurrenceid = value;
	}

	public String getRecurrenceid() {
		return recurrenceid;
	}
	
}
